home *** CD-ROM | disk | FTP | other *** search
- /*
- * Open_Context_Menu.bsh - a BeanShell macro script for
- * the jEdit text editor - Opens the editor context menu
- * just below and to the right of the cursor.
- *
- * Copyright (C) 2003 Nitsan Vardi
- *
- * $Id: Open_Context_Menu.bsh,v 1.2 2003/12/22 04:14:54 spestov Exp $
- */
-
- openContextMenu(){
- // Get the caret's position
- caretOffset = textArea.getCaretPosition();
- caretPos = textArea.offsetToXY(caretOffset);
- // Open the context menu near the caret
- GUIUtilities.showPopupMenu(textArea.getRightClickPopup(),
- textArea,caretPos.x+10,caretPos.y+20);
- }
-
- openContextMenu();
-
- /*
- Macro index data (in DocBook format)
-
- <listitem>
- <para><filename>Open_Context_Menu.bsh</filename></para>
- <abstract><para>
- Opens the text area context menu just below and to
- the right of the caret.
- </para></abstract>
- </listitem>
-
- */
-
-